<%-- 
    Document   : logo
    Created on : Jul 20, 2012, 9:42:40 AM
    Author     : VANANH
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    
        <link rel="stylesheet" type="text/css" href="../css/jquery.fancybox-1.3.4.css"/>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"/>
        <link rel="stylesheet" type="text/css" href="../css/uploadform.css"/>
<style type="text/css">
    body{
        background:none !important;
    }
    .uploadListClass table{
      height:20px !Important;
    }
    form{
       overflow: hidden;
    }
    .rich-fileupload-table-td {height:20px}

    #fancybox-outer {
                width:420px !important;
                height:245px !important;
    }
</style>
 <f:view>
       <a4j:form id="SERVICE_FORM" >
                <div class="popup" style="height:265px; width:420px; background: white;">

                    <div class="popup-header">
                        <div class="title">upload logo</div>

                    </div>
                    <div class="popup-content">
                        <div class="main_content" style="padding:10px">
                         
                                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
                                <f:loadBundle basename="queenb.web.resources.jsfmessage" var="messages"/>
                                            <div style="float:left;width:410px; height:152px;" >
                                                <rich:fileUpload id="uploadDoc1" style="width:100%;border:none;height:100%"
                                                                 onuploadcomplete="self.parent.location.href='#{uploadLogoController.reload}'"
                                                                                 acceptedTypes="#{uploadLogoController.type}"
                                                                                 uploadControlLabel="#{locale.upload}"
                                                                                 addControlLabel="#{locale.select_logo}"
                                                                                 clearAllControlLabel="#{locale.delete_all}"
                                                                                 clearControlLabel="#{locale.delete}"
                                                                                 cancelEntryControlLabel="#{locale.remove}"
                                                                                 doneLabel=""
                                                                                 sizeErrorLabel="#{locale.size_mismatch}."
                                                                                 transferErrorLabel="#{locale.error_upload_process}"
                                                                                 progressLabel="#{locale.uploading} ..."
                                                                                 maxFilesQuantity="10"
                                                                                 fileUploadListener="#{uploadLogoController.uploadPicListener}"
                                                                                 listHeight="108px"
                                                                                 allowFlash="true"
                                                                                 uploadListClass="uploadListClass">

                                                                    <f:facet name="label">
                                                                        <h:outputText value="#{locale.Uploaded} {_KB}#{locale.from_kb} {KB}KB --- {mm}:{ss}"></h:outputText>
                                                                    </f:facet>
                                                                    <f:param value="#{uploadLogoController.pagereload}" name="page"/>
                                                                    <f:param value="#{uploadLogoController.pk100}" name="pk100"/>
                                                                    <f:param value="#{uploadLogoController.pn100}" name="pn100"/>
                                                                </rich:fileUpload>
                                                
                                                

                                            </div>
                           
                        </div>

                    </div>
                    <div class="popup-footer">
                        <div class="buttonsave" onclick="self.parent.tb_remove()"  ><span><h:outputText value="#{locale.close}"/></span></div>

                    </div>
                </div>
            </a4j:form>
 </f:view>
